/*
package com.ruoyi.project.tool.swagger.UserController;

import com.ruoyi.common.exception.BaseException;
import com.ruoyi.framework.aspectj.lang.annotation.Ide;
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.annotation.SignatureValidation;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.system.domain.SysLocation;
import com.ruoyi.project.system.service.ISysLocationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

*/
/**
 * 收货地址Controller
 *
 * @author theme
 * @date 2021-01-20
 *//*

@Api(description = "收货地址Controller")
@RestController
@RequestMapping("/mobileUser/location")
public class UserLocationController extends BaseController {
    @Autowired
    private ISysLocationService sysLocationService;

    @Autowired
    private UserController userController;
    */
/**
     * 获取收货地址详细信息
     *//*

    @ApiOperation("获取收货地址详细信息")
    @GetMapping(value = "/get")
    @SignatureValidation
    @Ide
    public AjaxResult getInfo(HttpServletRequest servletRequest) throws Exception {
        AjaxResult ajaxResult=userController.getOpenId(servletRequest);
        if(Integer.valueOf(ajaxResult.get("code")+"")!=200){
            throw new BaseException("获取用户信息异常");
        }
        return AjaxResult.success(sysLocationService.selectSysLocationById(ajaxResult.get("data")+""));
    }
    */
/**
     * 新增收货地址
     *//*

    @Log(title = "收货地址", businessType = BusinessType.INSERT)
    @PostMapping
    @SignatureValidation
    @Ide
    public AjaxResult add(@RequestBody SysLocation sysLocation,HttpServletRequest servletRequest) throws Exception {
        AjaxResult ajaxResult=userController.getOpenId(servletRequest);
        if(Integer.valueOf(ajaxResult.get("code")+"")!=200){
            throw new BaseException("获取用户信息异常");
        }
        sysLocation.setBankUserSign(ajaxResult.get("data")+"");
        SysLocation location=sysLocationService.selectSysLocationById(sysLocation.getBankUserSign());
        if(null!=location){
            return AjaxResult.error("已存在收货地址!");
        }
        return toAjax(sysLocationService.insertSysLocation(sysLocation));
    }

}
*/
